package com.hxgz.steel.service;

import com.hxgz.steel.common.ServerResponse;
import com.hxgz.steel.domain.Page;
import com.hxgz.steel.domain.Product;
import com.hxgz.steel.dto.CategoryDto;
import com.hxgz.steel.dto.GoodDto;

import java.util.List;
import java.util.Map;

public interface GoodsManageService {

    ServerResponse listGoods(GoodDto dto, Page page);

    ServerResponse insertProduct(Product product, String productModel, String productParameter);

    ServerResponse<Map<String,Object>> selectProductInfo(Product product);

    ServerResponse updateStatusByUserIdAndId(Long userId,String ids,Integer status);

    ServerResponse init(Integer id);

    ServerResponse insertPage(Integer id);

    List<CategoryDto> getDown(String name, Integer id);
}
